﻿using System.Collections.Generic;
using QDT.Common;
using QDT.Core.Assignments;
using QDT.Core.Deals;
using QDT.Core.Projects;

namespace QDT.Services.Credits
{
    public interface ICreditService
    {

        /// <summary>
        /// 根据Id获得债权
        /// </summary>
        Credit GetCreditorById(int id);

        /// <summary>
        /// 分页获得债权
        /// </summary>
        IPagedList<Credit> GetCreditPaged(int? page, int? userId = null, int? projectId = null, bool? isAssign = null, bool? isRepay = null, int assignmentId = 0, int pageSize = 10);

        /// <summary>
        /// 获得债权
        /// </summary>
        ICollection<Credit> GetCreditList(int? userId, int? projectId, bool? isRepay, int assignmentId = 0);


        IPagedList<Credit> GetCanAssigmentCredit(int userId, int page=1,int pageSize = 10);

    }
}
